package com.jy.adscm.operation.cgxsb.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.jy.adscm.operation.cgxsb.bean.CgxsCommodityinfo;
import com.jy.adscm.operation.cgxsb.bean.SalePro;
import com.jy.adscm.operation.cgxsb.bean.spmc;
import com.jy.adscm.operation.cgxsb.mapper.mysql.CgxsCommodityinfoMapper;
import com.jy.adscm.operation.cgxsb.service.CgxsCommodityinfoService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yyy
 * @since 2019-01-10
 */
@Service
public class CgxsCommodityinfoServiceImpl extends ServiceImpl<CgxsCommodityinfoMapper, CgxsCommodityinfo> implements CgxsCommodityinfoService {
@Autowired
    CgxsCommodityinfoMapper cgxsCommodityinfoMapper;
    @Override
    public List<spmc> queryBySpmc(String type) {
        return cgxsCommodityinfoMapper.queryBySpmc(type);

    }

    @Override
    public List<CgxsCommodityinfo> queryByTid(String tid) {
        return cgxsCommodityinfoMapper.queryByTid(tid);
    }

    @Override
    public List<SalePro> querySalePro() {
        return cgxsCommodityinfoMapper.querySalePro();
    }


}
